<?php
/**
 * This is the class that brings in the value as it provides (through DataObjectField) validation as well as
 * presentation / formatting
 */

abstract class SRDO_DataObject {
	private $object = '';
	
	// $format = '%street%\n%city%
	abstract public function format($format);
	
	public function _setObject($object) {
		$this->object = $object;
	}
	
	public function _setupField($field, $type, &$value) {
		$this->{$field} = new SRDO_DataObjectField($value, $type);
	}
}